package br.mikhas.lab.scanner;

public class AcceptRangeTransition extends Transition {

	private final char start;
	private final char end;

	public AcceptRangeTransition(State state, char start, char end) {
		super(state);
		this.start = start;
		this.end = end;
	}

	@Override
	boolean accept(char c) {
		return c >= start && c <= end;
	}

}
